Test code for Contractbin

